<?php
	switch($action){
		case 'manage':
			if(!$_userid) showmessage('您还没有登陆，即将跳转到登陆页面',url("?module=member&action=login&forward=".urlencode(URL)));
			/*if(in_array($_groupid,$M['allow_add_map']))
			{*/
				$map = $company_user_infos['map'];
				if($map != '')
				{
					$maps = explode('|',$map);
					$x = $maps[0];
					$y = $maps[1];
					$z = $maps[2];
				}
			//}
			//else showmessage('您所在的用户组不能修改地图标注数据，请和管理员联系','goback');
			include template('map_manage.html','yellowpage');
			
		break;
	
		case 'update':
			if(!$_userid) showmessage('您还没有登陆，即将跳转到登陆页面',url("?module=member&action=login&forward=".urlencode(URL)));
				$map = $x.'|'.$y.'|'.$z;
				$db->query("UPDATE `".DB_PRE."member_company` SET map='$map' WHERE userid='$_userid'");
				exit('1');
				include template('map_manage.html','yellowpage');
			break;
	}
?>